NAME		=		Babel-server

SOURCE		=		BabelServer.cpp				\
				BoostAsyncTcpSocket.cpp			\
				BoostRotatingBuffer.cpp			\
				Client.cpp				\
				ClientManager.cpp			\
				ConnectionManager.cpp			\
				main.cpp				\
				ModuleCall.cpp				\
				ModuleServer.cpp			\
				Processor.cpp				\
				ServiceManager.cpp			\

OBJS		=		$(SOURCE:.cpp=.o)

CPPFLAGS	+=		-std=c++0x -I ../Babel-shared/.

all		:		$(NAME)

$(NAME)		:		$(OBJS)
				g++ -std=c++0x $(OBJS) -o $(NAME) -lboost_system -lboost_thread -lboost_timer -lpthread -L ../Babel-shared/ -lBabel-shared

clean		:		
				rm -rf $(OBJS)

fclean		:		clean
				rm -rf $(NAME)

re		:		fclean all

.PHONY		:		all clean fclean re
